//
//  _HACTecNodeAmount.m
//  HStockCharts
//
//  Created by Hotacool on 2018/9/28.
//

#import "_HACTecNodeAmount.h"

@implementation _HACTecNodeAmount

- (CGFloat)rectValueForItem:(id)data {
    if ([data isKindOfClass:[HACKLineEntry class]]) {
        return ((HACKLineEntry*)data).money;
    } else if ([data isKindOfClass:[HACTimeLineEntry class]]) {
        return ((HACTimeLineEntry*)data).money;
    }
    return 0.0;
}

- (CGFloat)maxValueForData:(HACKLineEntry *)data {
    return [self rectValueForItem:data];
}

- (CGFloat)minValueForData:(HACKLineEntry *)data {
    return 0;
}
@end
